<?php
namespace app\index\model;

use think\Model;

class Like extends Model {

	public function user() {
		return $this->hasOne('User', 'id', 'uid')->field('id, fullname, avator_path');
	}

	public function getCreateTimeAttr($time) {
	    return $time;
	}
}